<html>
<head></head>
<!--引入wangEditor.css-->
<link rel="stylesheet" type="text/css"
	th:href="@{/resources/wangEditor/dist/css/wangEditor.min.css}">


<body>
	<textarea id="textarea1">
    	<p>请输入内容...</p>
	</textarea>


</body>
<!--引入jquery和wangEditor.js-->
<!--注意：javascript必须放在body最后，否则可能会出现问题-->
<script type="text/javascript" th:src="@{/resources/wangEditor/dist/js/lib/jquery-1.10.2.min.js}"></script>
<script type="text/javascript" th:src="@{/resources/wangEditor/dist/js/wangEditor.min.js}"></script>
<!--这里引用jquery和wangEditor.js-->
<script type="text/javascript">
	var editor = new wangEditor('textarea1');
	editor.config.uploadImgUrl='/admin/editorFile';
	editor.config.uploadImgFileName='uploadFile';
	editor.create();
</script>
</html>